package com.service;


import com.entity.Contact;
import com.mapper.ContactMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ContactService {


    @Autowired
    private ContactMapper contactMapper;

    /**发布反馈*/
    public Integer insertContact(Contact contact){
        return contactMapper.insertContact(contact);
    }


    public List<Contact> que(){
        return contactMapper.QuContact();
    }

}
